package com.yl.auth.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 刘致远
 * @datetime 2023/7/7 14:40
 * @description 类对象
 */
@Data
public class CaigoushenqingVo {
    @ApiModelProperty("采购id")
    private Integer id;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("员工id外键")
    private Integer ygId;

    @ApiModelProperty("采购成本")
    private String caigouchengben;

    /**
     * 1.待提交
     * 2.待验收
     * 3.已验收
     * 4.待发货
     */
    @ApiModelProperty("状态字段")
    private Integer status;

    @ApiModelProperty("采购品种数")
    private Integer shicaiNumber;

    @ApiModelProperty("")
    private String name;

    @ApiModelProperty("物料名称")
    private String wuliao;

    @ApiModelProperty("供应商外键id")
    private Integer gid;

    @ApiModelProperty("批发价")
    private Double pifa;

    @ApiModelProperty("零售价")
    private Double lingshou;

    @ApiModelProperty("采购价")
    private Double caigou;

    @ApiModelProperty("更新时间")
    private LocalDateTime gengxin;

    @ApiModelProperty("供应商名称")
    private String gname;

    @ApiModelProperty("采购数量")
    private Integer number;

    @ApiModelProperty("食材id外键")
    private Integer sid;

    @ApiModelProperty("机构名称")
    @TableField(value = "yl_name")
    private String ylName;


    @ApiModelProperty("到货日期")
    @TableField(value = "daohuo_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date daohuoTime;

    @ApiModelProperty("单位名称")
    private String dname;
}
